package com.tjl.warehouse.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * 用户表
 * @TableName user_info
 */
@TableName(value ="user_info")
@Data
public class UserInfo implements Serializable {
    /**
     * 
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "user_code")
    private String userCode;

    /**
     * 
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 
     */
    @TableField(value = "user_pwd")
    private String userPwd;

    /**
     * 1 超级管理员 、 2  管理员 、 3 普通用户
     */
    @TableField(value = "user_type")
    private String userType;

    /**
     * 0 未审核 、1 已审核
     */
    @TableField(value = "user_state")
    private String userState;

    /**
     * 0 正常、 1 已删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private String isDelete;

    /**
     * 
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 
     */
    @TableField(value = "create_time")
    private String createTime;

    /**
     * 
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 
     */
    @TableField(value = "update_time")
    private String updateTime;

    //创建人名字
    @TableField(exist = false)
    private String  createName;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}